Plug a memory leak
authorMatthias Clasen <mclasen@redhat.com>
Mon, 5 Oct 2009 02:35:12 +0000 (22:35 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 5 Oct 2009 02:35:12 +0000 (22:35 -0400)
Valgrind reported a leak of regions from gdk_window_process_updates_internal.

gdk/gdkwindow.c

index 7f3572f5b0d46a645a85971210e19e8c5cdb793a..2bb55518fc7ee1d25355f26f6957a59595cecd3b 100644 (file)
@@ -2624,6 +2624,8 @@ gdk_window_end_implicit_paint (GdkWindow *window)
       /* Reset clip region of the cached GdkGC */
       gdk_gc_set_clip_region (tmp_gc, NULL);
     }
+  else
+    gdk_region_destroy (paint->region);
 
   g_object_unref (paint->pixmap);
   g_free (paint);